package com.example.livingadminmaster.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.livingadminmaster.pojo.Faculty;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface FacultyMapper extends BaseMapper<Faculty> {
    @Update("UPDATE faculty SET status = #{status} WHERE faculty_id = #{facultyId}")
    boolean updateStatus(@Param("faculty_id") long faculty_id, boolean status);
//    @Insert("INSERT INTO faculty_info (faculty_id,username, password,age,gender,phone,position,department,room_number,building,last_login,status,create_time,update_time) VALUES (#{facultyId},#{username}, #{password},#{age}, #{gender}, #{phone}, #{position}, #{department}, #{roomNumber}, #{building}, #{lastLogin}, #{status}, #{createTime}, #{updateTime})")
//    void addFaculty(Faculty faculty);
}
